#include <xp/bas/stdio.h>
#include <xp/bas/memory.h>
#include <string.h>

int xp_main ()
{
	const char* p = "abcdefghijklmnopqrstuvwxy";
	char t[10000];

	t[xp_swab (t, p, strlen(p))] = '\0';
	printf ("xp_swab (%s) => [%s]\n", p, t);

	swab (p, t, strlen(p));
	t[(strlen(p) >> 1) << 1] = '\0'; 
	printf ("swab (%s) => [%s]\n", p, t);
	return 0;
}
